package com.yaglyf.mvc.emun;

/**
 * Title: Class CommentsShow
 * Description:
 * 注释展示类，说明各种方法注释怎么写
 *
 * @author qiang.yang
 * @version 1.0.0
 * @email qiang.yang@chinaredstar.com
 * @date: 2016/10/19 15:56
 */
public enum ResultEmun {
    SUC("suc","成功",true),
    FAIL("fail","失败",false);

    ResultEmun(String code, String message, boolean isSuccess) {
        this.code = code;
        this.message = message;
        this.isSuccess = isSuccess;
    }

    private final String code;

    private final String message;

    private final boolean isSuccess;

    public String getCode() {
        return code;
    }

    public boolean isSuccess() {
        return isSuccess;
    }

    public String getMessage() {
        return message;
    }
}
